﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kugar.Tools.SQLHelper.SQLGenerator.EntityT4
{
    public partial class SQLServerProcGenerator
    {
        public string Namespace { set; get; }

        public string DbContextName { set; get; }

        public DbProcInfo[] ProcList { set; get; }

        private string FirstLetterLower(string name)
        {
            return T4SQLHelper.FirstLetterLower(name);
        }

        public string ConvertParameterTypeToNetType(DbProcInfo.ParameterInfo type)
        {
            return T4SQLHelper.ConvertColumnTypeToNetType(type.TypeName, type.IsNullable);
        }
    }
}
